
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-hegebiaozhun"></i>
                    <div class="name">考试</div>
                    <div class="fontclass">.icon-hegebiaozhun</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-bar-chart"></i>
                    <div class="name">bar-chart</div>
                    <div class="fontclass">.icon-bar-chart</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-blog"></i>
                    <div class="name">blog</div>
                    <div class="fontclass">.icon-blog</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shoucang"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.icon-shoucang</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-book-2"></i>
                    <div class="name">书</div>
                    <div class="fontclass">.icon-book-2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-blackboard-2"></i>
                    <div class="name">黑板-2</div>
                    <div class="fontclass">.icon-blackboard-2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-crayons"></i>
                    <div class="name">蜡笔</div>
                    <div class="fontclass">.icon-crayons</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-cup"></i>
                    <div class="name">奖杯</div>
                    <div class="fontclass">.icon-cup</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-abc"></i>
                    <div class="name">abc</div>
                    <div class="fontclass">.icon-abc</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-medal"></i>
                    <div class="name">奖章</div>
                    <div class="fontclass">.icon-medal</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-mortarboard-1"></i>
                    <div class="name">学位帽</div>
                    <div class="fontclass">.icon-mortarboard-1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-pencil-1"></i>
                    <div class="name">铅笔</div>
                    <div class="fontclass">.icon-pencil-1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shoucang1"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.icon-shoucang1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-iconset-09"></i>
                    <div class="name">考卷</div>
                    <div class="fontclass">.icon-iconset-09</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-id-321"></i>
                    <div class="name">公告</div>
                    <div class="fontclass">.icon-id-321</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-luboxuexi"></i>
                    <div class="name">录播学习</div>
                    <div class="fontclass">.icon-luboxuexi</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-eye-vision-goal-plan-structure-define-think-watch-office-fcabecd"></i>
                    <div class="name">思考，观察</div>
                    <div class="fontclass">.icon-eye-vision-goal-plan-structure-define-think-watch-office-fcabecd</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-cuotitubiao"></i>
                    <div class="name">错题图标</div>
                    <div class="fontclass">.icon-cuotitubiao</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-user-girl"></i>
                    <div class="name">用户（女）</div>
                    <div class="fontclass">.icon-user-girl</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shoucang2"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.icon-shoucang2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-edit"></i>
                    <div class="name">编辑</div>
                    <div class="fontclass">.icon-edit</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-position"></i>
                    <div class="name">地址</div>
                    <div class="fontclass">.icon-position</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-set"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.icon-set</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-user-boy"></i>
                    <div class="name">用户（男）</div>
                    <div class="fontclass">.icon-user-boy</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-pc"></i>
                    <div class="name">电脑</div>
                    <div class="fontclass">.icon-pc</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shoucang3"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.icon-shoucang3</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-gonggaoicon"></i>
                    <div class="name">公告icon</div>
                    <div class="fontclass">.icon-gonggaoicon</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-business-color_board-"></i>
                    <div class="name">business-color_board-30</div>
                    <div class="fontclass">.icon-business-color_board-</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-business-color_briefcase-"></i>
                    <div class="name">business-color_briefcase-24</div>
                    <div class="fontclass">.icon-business-color_briefcase-</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-media-color-_camera-"></i>
                    <div class="name">media-color-1_camera-18</div>
                    <div class="fontclass">.icon-media-color-_camera-</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-objects-color_diamond"></i>
                    <div class="name">objects-color_diamond</div>
                    <div class="fontclass">.icon-objects-color_diamond</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-objects-color_globe"></i>
                    <div class="name">objects-color_globe</div>
                    <div class="fontclass">.icon-objects-color_globe</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shopping-color_cart-modern-in"></i>
                    <div class="name">shopping-color_cart-modern-in</div>
                    <div class="fontclass">.icon-shopping-color_cart-modern-in</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tech-color_desktop"></i>
                    <div class="name">tech-color_desktop</div>
                    <div class="fontclass">.icon-tech-color_desktop</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tech-color_keyboard"></i>
                    <div class="name">tech-color_keyboard</div>
                    <div class="fontclass">.icon-tech-color_keyboard</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tech-color_print"></i>
                    <div class="name">tech-color_print</div>
                    <div class="fontclass">.icon-tech-color_print</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dingdantongji--"></i>
                    <div class="name">订单统计-01-01</div>
                    <div class="fontclass">.icon-dingdantongji--</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
